package cn.zglbk.network.message;

import cn.zglbk.network.param.EnumMesasageType;
import cn.zglbk.network.param.GameMessageMetadata;

/**
 * @author zglbk.cn
 * @email 1030681978@qq.com
 * @date 2020/10/23 19:09
 */
@GameMessageMetadata(messageId=2,messageType= EnumMesasageType.REQUEST,serviceId=1)
public class ConnectionStatusMsgRequest extends AbstractJsonGameMessage<ConnectionStatusMsgRequest.MessageBody> {

    public static class MessageBody {
       
        private boolean connect;//true是连接成功，false是连接断开
        public boolean isConnect() {
            return connect;
        }

        public void setConnect(boolean connect) {
            this.connect = connect;
        }

    }

    @Override
    protected Class<MessageBody> getBodyObjClass() {
        return MessageBody.class;
    }


}
